#==============================================================================
# [RGSS/2] Element Imbuing States
# Version : 1.0
# Author : private/privateer
#==============================================================================
# Beberapa state bisa menambah element ke element_set unit.
#==============================================================================
# CHANGELOG :
# Ver. 1.0 | Initial Release
#==============================================================================
#==============================================================================
# CONFIGURATION STARTS! EDIT ONLY MARKED LINES!
#==============================================================================
module PSS_ElementImbuingStates
  IMBUING_STATES = {
  # STATE_ID => [IMBUED_ELEMENTS]
  18 => [9,10], # STATE ID 18 AKAN MENAMBAH ELEMENT 9 & 10 KE ELEMENT_SET ACTOR
  19 => [11,12]
  }
end
#==============================================================================
# CONFIGURATION ENDS! DON'T EDIT FURTHER UNLESS YOU KNOW WHAT YOU'RE DOING!
#==============================================================================
class Game_Actor < Game_Battler
  include PSS_ElementImbuingStates
  alias pss_eis_element_set element_set
  def element_set
    imb_el = pss_eis_element_set
    for i in IMBUING_STATES.keys
      if @states.include?(i)
        for j in IMBUING_STATES[i]
          imb_el.push(j)
          return imb_el
        end
      else
        for j in IMBUING_STATES[i]
          imb_el.delete(j)
          return imb_el
        end
      end
    end
  end
end